﻿using System.ComponentModel.DataAnnotations;
using ZeroSum.Attributes;
using ZeroSum.Domain.Entities;
using ZeroSum.IdGenerator;

namespace ZeroBlog.Core.Domains.Blog
{
    [Entity]
    public class Category : BaseEntity<long>, ISoftDelete
    {
        public Category()
        {
            Id = IDGenerator.Generate();
        }
        [Required] public string Name { get; set; } = string.Empty;
        [Required] public string AliasName { get; set; } = string.Empty;
        public bool IsDeleted { get; set; } = false;
    }
}
